package com.education.online.service.impl;


import com.education.common.utils.Convert;
import com.education.online.mapper.OLabelMapper;
import com.education.online.pojo.OLabel;
import com.education.online.pojo.OPrepaLabel;
import com.education.online.service.OLabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 标签表 服务层实现
 *
 * @author d
 * @date 2020-06-04 15:17:49
 */
@Service
public class OLabelServiceImpl implements OLabelService {

    @Autowired
    private OLabelMapper oLabelMapper;

    @Override
    public List<OLabel> selectOLabelByPerpaId(Integer perpaId) {
        return oLabelMapper.selectOLabelByPerpaId(perpaId);
    }

    //查询标签表信息
    @Override
    public OLabel selectOLabelById(Integer id) {
        return oLabelMapper.selectOLabelById(id);
    }

    // 查询标签表列表
    @Override
    public List<OLabel> selectOLabelList(OLabel oLabel) {
        return oLabelMapper.selectOLabelList(oLabel);
    }

    // 新增标签表
    @Override
    public int insertOLabel(OLabel oLabel) {
        return oLabelMapper.insertOLabel(oLabel);
    }

    //修改标签表
    @Override
    public int updateOLabel(OLabel oLabel) {
        return oLabelMapper.updateOLabel(oLabel);
    }

    //删除标签表对象
    @Override
    public int deleteOLabelByIds(String ids) {
        return oLabelMapper.deleteOLabelByIds(Convert.toStrArray(ids));
    }
}